﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Net
{
    /// <summary>
    /// 
    /// </summary>
    public interface IServiceCollection<TS> : IEnumerable<TS> where TS : IService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        TS this[string name] { get; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        TS this[int index] { get; }
    }
}
